#include "RecognizerObjects.h"
using namespace std; 
/*******************************************************************/
CRecognizerObjects::CRecognizerObjects(void)
{	
	m_className = "NONE";
	m_classType = 0.00; 
	m_realCentroid[0] = 0.00;
	m_realCentroid[1] = 0.00;
	m_realCentroid[2] = 0.00;
	m_rWidth = 0.00;
	m_rHeight = 0.00; 
}
/*******************************************************************/
CRecognizerObjects::~CRecognizerObjects(void)
{
}
/*******************************************************************/
void CRecognizerObjects::SetClassName( string className ) 
{
	m_className = className; 
}
/*******************************************************************/
string CRecognizerObjects::GetClassName( void ) 
{
	return m_className;
}
/*******************************************************************/
double CRecognizerObjects::GetClassType( void ) 
{
	return m_classType;
}
/*******************************************************************/
void   CRecognizerObjects::SetClassType( double value ) 
{
	m_classType = value;
}
/*******************************************************************/
void   CRecognizerObjects::SetStats( CvRect rect ) 
{
	m_pRect = rect; 	
}
/*******************************************************************/
void   CRecognizerObjects::SetRealWH( double width, double height ) 
{
	m_rWidth = width;
	m_rHeight = height;
}
/*******************************************************************/
void   CRecognizerObjects::SetPixelCentroid( int x, int y )
{
	m_pRect.x = x;
	m_pRect.y = y;
}
/*******************************************************************/
void   CRecognizerObjects::SetRealCentroid( double x, double y, double z )
{
	m_realCentroid[0] = x;
	m_realCentroid[1] = y;
	m_realCentroid[2] = z;
}
/*******************************************************************/ 
double* CRecognizerObjects::GetRealCentroid( void )
{
	return m_realCentroid;
}
/*******************************************************************/
int CRecognizerObjects::GetPixelPosX( void ) 
{
	return m_pRect.x;
}
/*******************************************************************/
int CRecognizerObjects::GetPixelPosY( void ) 
{
	return m_pRect.y;
}
/*******************************************************************/
int CRecognizerObjects::GetPixelWidth( void ) 
{
	return m_pRect.width;
}
/*******************************************************************/
int CRecognizerObjects::GetPixelHeight( void ) 
{
	return m_pRect.height;
}
/*******************************************************************/
void CRecognizerObjects::Print( ostream& os ) 
{
	os << m_className << endl;
	os << "Image Space: (" << m_pRect.x << "," << m_pRect.y << ") (" << m_pRect.width << "," << m_pRect.height <<")" << endl;
	os << "World Space: (" << m_realCentroid[0] << "," << m_realCentroid[0] << "," << m_realCentroid[0] << ") (" << m_rWidth  << "," << m_rHeight << ")" << endl;
}
/*******************************************************************/